package com.iplant.ams.service.basicenum.ams.fxt;


import com.iplant.base.po.enums.BaseEnum;

/**
 * 工装类型
 *
 * @author YouWang·Peng
 * 2023-7-24 19:54:41
 */
public enum AMSMeasureType implements BaseEnum {
    /**
     * 默认
     */
    Default(0, "默认"),

    /**
     * 夹具
     */
    Standard(1, "标准量具"),
    /**
     * 设备
     */
    Universal(2, "通用量具"),
    /**
     * 刀具
     */
    Special(3, "专用量具"),
    /**
     * 刀具
     */
    General(4, "普通量具");

    private int value;
    private String label;
    private String remark = "";

    AMSMeasureType(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static AMSMeasureType getEnumType(int val) {
        for (AMSMeasureType type : AMSMeasureType.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return AMSMeasureType.Default;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
